// 封装保存频道到loaclstorage中方法
// 设置统一的key
const HM_CHANNEL = 'channels'
//   setChannels

export function setChannels (value) {
  window.localStorage.setItem(HM_CHANNEL, JSON.stringify(value))
}
// getChannels
export function getChannels () {
  return JSON.parse(window.localStorage.getItem(HM_CHANNEL))
}
// removeChannels
export function removeChannels () {
  window.localStorage.removeItem(HM_CHANNEL)
}
